home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-11 | 5.9 KB | 251 lines | [TEXT/CWIE] |
- // DDocData -- data class for Everything
-
- #pragma once
-
- #include "AMDataDef.h"
-
- class LFileStream;
-
-
- const long idStandard = 'Stad';
- const long idXx = 'Xx ';
- const long idLR = 'LR ';
- const long idLR2 = 'LR2 ';
- const long idLR3 = 'LR3 ';
- const long idLR4 = 'LR4 ';
- const long idCheckbox = 'Chex';
- const long idCheckbox2 = 'Che2';
- const long idNext = 'Next';
- const long idNext2 = 'Nex2';
- const long idRadioGroup = 'Radp';
- const long idGroup = 'Grop';
- const long idGraphic = 'Grac';
- const long idBevel = 'Bevl';
- const long idText = 'Text';
- const long idSmall = 'Smal';
- const long idLarge = 'Lare';
- const long idX12345 = 'X145';
- const long idX12345e6 = 'X126';
- const long idPassword = 'Pasd';
- const long idDate = 'Date';
- const long idTime = 'Time';
- const long idStyled = 'Styd';
- const long idBars = 'Bars';
- const long idStandard2 = 'Sta2';
- const long idGraphic2 = 'Gra2';
- const long idSlider = 'Slir';
- const long idTickMarks = 'Tics';
- const long idNonDirectional = 'Nonl';
- const long idLittleArrows = 'Lits';
- const long idSpinner = 'Spir';
- const long idVolumeControl = 'Voll';
- const long idJimSSlider = 'Jimr';
- const long idStandard3 = 'Sta3';
- const long idIndeterminate = 'Inde';
- const long idChasingArrows = 'Chas';
- const long idRectangle = 'Rece';
- const long idRoundRect = 'Rout';
- const long idBarberPole = 'Bare';
- const long idRoundBarber = 'Rour';
- const long idTools = 'Toos';
- const long idFromValuesList2 = 'Fro2';
- const long idFromMenu = 'Frou';
- const long idTextList = 'Tex2';
-
-
- //----------
- class DDocData : public AMDataDef {
- public:
- DDocData ();
- virtual ~DDocData ();
-
- public:
- void CopyFrom (DDocData* inOther);
- void ReadFromFile (LFileStream* inFile);
- void WriteToFile (LFileStream* inFile);
-
- public: // accessors
- Boolean GetStandard () const;
- void SetStandard (Boolean inValue);
-
- Boolean GetXx () const;
- void SetXx (Boolean inValue);
-
- Boolean GetLR () const;
- void SetLR (Boolean inValue);
-
- Boolean GetLR2 () const;
- void SetLR2 (Boolean inValue);
-
- Boolean GetLR3 () const;
- void SetLR3 (Boolean inValue);
-
- Boolean GetLR4 () const;
- void SetLR4 (Boolean inValue);
-
- Boolean GetCheckbox () const;
- void SetCheckbox (Boolean inValue);
-
- Boolean GetCheckbox2 () const;
- void SetCheckbox2 (Boolean inValue);
-
- Boolean GetNext () const;
- void SetNext (Boolean inValue);
-
- Boolean GetNext2 () const;
- void SetNext2 (Boolean inValue);
-
- SInt16 GetRadioGroup () const;
- void SetRadioGroup (SInt16 inValue);
-
- SInt16 GetGroup () const;
- void SetGroup (SInt16 inValue);
-
- SInt16 GetGraphic () const;
- void SetGraphic (SInt16 inValue);
-
- SInt16 GetBevel () const;
- void SetBevel (SInt16 inValue);
-
- SInt16 GetText () const;
- void SetText (SInt16 inValue);
-
- StringPtr GetSmall (Str255 outStr = nil) const;
- void SetSmall (ConstStringPtr inValue);
- void SetSmall (CharsHandle inValue);
-
- StringPtr GetLarge (Str255 outStr = nil) const;
- void SetLarge (ConstStringPtr inValue);
- void SetLarge (CharsHandle inValue);
-
- SInt32 GetX12345 () const;
- void SetX12345 (SInt32 inValue);
-
- double GetX12345e6 () const;
- void SetX12345e6 (double inValue);
-
- StringPtr GetPassword (Str255 outStr = nil) const;
- void SetPassword (ConstStringPtr inValue);
- void SetPassword (CharsHandle inValue);
-
- LongDateRec GetDate () const;
- void SetDate (LongDateRec inValue);
-
- LongDateRec GetTime () const;
- void SetTime (LongDateRec inValue);
-
- StringPtr GetStyled (Str255 outStr = nil) const;
- void SetStyled (ConstStringPtr inValue);
- void SetStyled (CharsHandle inValue);
-
- UInt16 GetBars () const;
- void SetBars (UInt16 inValue);
-
- SInt16 GetStandard2 () const;
- void SetStandard2 (SInt16 inValue);
-
- SInt16 GetGraphic2 () const;
- void SetGraphic2 (SInt16 inValue);
-
- SInt16 GetSlider () const;
- void SetSlider (SInt16 inValue);
-
- SInt16 GetTickMarks () const;
- void SetTickMarks (SInt16 inValue);
-
- SInt16 GetNonDirectional () const;
- void SetNonDirectional (SInt16 inValue);
-
- SInt16 GetLittleArrows () const;
- void SetLittleArrows (SInt16 inValue);
-
- SInt16 GetSpinner () const;
- void SetSpinner (SInt16 inValue);
-
- SInt16 GetVolumeControl () const;
- void SetVolumeControl (SInt16 inValue);
-
- SInt16 GetJimSSlider () const;
- void SetJimSSlider (SInt16 inValue);
-
- SInt16 GetStandard3 () const;
- void SetStandard3 (SInt16 inValue);
-
- SInt16 GetIndeterminate () const;
- void SetIndeterminate (SInt16 inValue);
-
- SInt16 GetChasingArrows () const;
- void SetChasingArrows (SInt16 inValue);
-
- SInt16 GetRectangle () const;
- void SetRectangle (SInt16 inValue);
-
- SInt16 GetRoundRect () const;
- void SetRoundRect (SInt16 inValue);
-
- SInt16 GetBarberPole () const;
- void SetBarberPole (SInt16 inValue);
-
- SInt16 GetRoundBarber () const;
- void SetRoundBarber (SInt16 inValue);
-
- SInt16 GetTools () const;
- void SetTools (SInt16 inValue);
-
- SInt16 GetFromValuesList2 () const;
- void SetFromValuesList2 (SInt16 inValue);
-
- SInt16 GetFromMenu () const;
- void SetFromMenu (SInt16 inValue);
-
- SInt16 GetTextList () const;
- void SetTextList (SInt16 inValue);
-
-
- protected:
- Boolean mStandard;
- Boolean mXx;
- Boolean mLR;
- Boolean mLR2;
- Boolean mLR3;
- Boolean mLR4;
- Boolean mCheckbox;
- Boolean mCheckbox2;
- Boolean mNext;
- Boolean mNext2;
- SInt16 mRadioGroup;
- SInt16 mGroup;
- SInt16 mGraphic;
- SInt16 mBevel;
- SInt16 mText;
- Str255 mSmall;
- Str255 mLarge;
- SInt32 mX12345;
- double mX12345e6;
- Str255 mPassword;
- LongDateRec mDate;
- LongDateRec mTime;
- Str255 mStyled;
- UInt16 mBars;
- SInt16 mStandard2;
- SInt16 mGraphic2;
- SInt16 mSlider;
- SInt16 mTickMarks;
- SInt16 mNonDirectional;
- SInt16 mLittleArrows;
- SInt16 mSpinner;
- SInt16 mVolumeControl;
- SInt16 mJimSSlider;
- SInt16 mStandard3;
- SInt16 mIndeterminate;
- SInt16 mChasingArrows;
- SInt16 mRectangle;
- SInt16 mRoundRect;
- SInt16 mBarberPole;
- SInt16 mRoundBarber;
- SInt16 mTools;
- SInt16 mFromValuesList2;
- SInt16 mFromMenu;
- SInt16 mTextList;
- };
-